package com.topsun.posclient.sales.dao;

import org.springframework.stereotype.Repository;

import com.topsun.posclient.common.dao.LocalDataProcessor;
import com.topsun.posclient.common.util.AppConstants;
import com.topsun.posclient.sales.entity.PartSalesDTO;

@Repository("partSaleLocalDao")
public class PartSaleLocalDao extends LocalDataProcessor {
	
	/**
	 * 本地保存销售数据
	 * 
	 * @param salesData 销售数据
	 * @throws Exception
	 */
	public void saveSalesData(PartSalesDTO salesData) throws Exception {
		this.createXmlFileFromObject(salesData, "data_PartSales",
				AppConstants.DATA_PARTSALES_PATH);
	}

}
